package com.tc.activiti.user.service;

import com.tc.activiti.user.entity.SysUser;

import java.util.List;

/**
 * @author zengqingfa
 * @date 2019/10/18 15:41
 * @description
 * @email zengqingfa_java@163.com
 */
public interface IUserService {

    int deleteByPrimaryKey(Long userId);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Long userId);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    void selectByPrimaryKey();

    List<SysUser> findAll();

    /**
     *  人员分页列表
     * @param pageNo
     * @param pageSize
     * @return
     */
    List<SysUser> findByPage(Integer pageNo, Integer pageSize);

    SysUser findByUsername(String username);
}
